package com.lvmama.pangolin.mybatis.mapper.tc;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.lvmama.pangolin.entity.InputCommodityVO;
import com.lvmama.pangolin.entity.tc.TCTicket_CommodityDetail;
import com.lvmama.pangolin.entity.tc.TCommodityItem;

public interface TCCommodityItemsMapper {
	/**  
	* @Title：TCommodityItemsMapper.java
	* @Author:zhoutianqi
	* @Description:
	* @Date：2017年3月6日上午11:07:29  
	*/
	public int insert(TCTicket_CommodityDetail item);
	public void insertSelective(TCommodityItem item);
	public TCommodityItem selectById(@Param("commodityId")String commodity_id,@Param("productId")String productId);
	public int update(TCTicket_CommodityDetail item);
	public int updateByProdCommIdAndType (TCTicket_CommodityDetail item);
	public void updateSelective(TCommodityItem item);
	public List<TCommodityItem> selectByProdId(@Param("product_id")String product_id);
	public TCommodityItem selectByProdCommId(@Param("productId")String productId,@Param("commodityId")String commodityId);
	public List<TCommodityItem> selectByProdComName(@Param("productId")String productId,@Param("commodityName")String commodityName);
	public void updateByProdCommId(@Param("productId")String productId,@Param("commodityId")String commodityId);
	public void deleteLinkByProdCommId(@Param("productId")String productId,@Param("commodityId")String commodityId);
	public void deleteById(@Param("id")String id);
	public List<TCommodityItem> selectByProdidAndIsLinked(Map<String, String> map);
	public List<TCommodityItem> selectByCommVO(InputCommodityVO co);
	public List<TCommodityItem> getActiveCommodity(@Param("productId")String productId);
}
